<!DOCTYPE html>
<!--解决idea thymeleaf 表达式模板报红波浪线-->
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>
    <!-- 样式 -->
    <link th:href="@{/drug/css/drug.css}" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-row layui-col-space15">
    <!-- 树 -->
    <div class="layui-col-md8">
        <div class="layui-card">
            <div class="layui-card-header">药品列表</div>
            <div class="layui-card-body">
                <!-- 表格主体 -->
                <table class="layui-hide" id="drugTable" lay-filter="test"></table>
                <!-- 模板 -->
                <script type="text/html" id="drugTableToolbarDemo">
                    <div class="layui-btn-container">
                        <button class="layui-btn layui-btn-sm" lay-event="addData">新增 &nbsp;<i class="layui-icon layui-icon-add-1"></i></button>
                        <input type="text" id="queryBydrugsName" name="queryBydrugsName" autocomplete="off"
                               placeholder="请输入药品名称" class="layui-input layui-btn-sm">&nbsp;
                        <button class="layui-btn layui-btn-sm" lay-event="query">查询 &nbsp;<i class="layui-icon layui-icon-search"></i></button>
                    </div>
                </script>
                <script type="text/html" id="drugTableBarDemo">
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                </script>
            </div>
        </div>
    </div>
    <!-- 操作表单 -->
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header">操作表单</div>
            <div class="layui-card-body">
                <form id="drugForm" class="layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label">药品名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="drugsName" autocomplete="off" placeholder="请输入药品名称"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">药品编码</label>
                        <div class="layui-input-block">
                            <input type="text" name="bm" autocomplete="off" placeholder="请输入药品编码"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">药品规格</label>
                        <div class="layui-input-block">
                            <input type="text" name="drugsSpe" autocomplete="off" placeholder="请输入药品规格"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">包装规格</label>
                        <div class="layui-input-block">
                            <input type="text" name="packSpe" autocomplete="off" placeholder="请输入包装规格"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">药品类型</label>
                        <div class="layui-input-block">
                            <input type="text" name="drugsTy" autocomplete="off" placeholder="请输入药品类型"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">参考进价</label>
                        <div class="layui-input-block">
                            <input type="text" name="rePrice" autocomplete="off" placeholder="请输入参考进价"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">包装单位</label>
                        <div class="layui-input-block">
                            <input type="text" name="packUnit" autocomplete="off" placeholder="请输入包装单位"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">售价</label>
                        <div class="layui-input-block">
                            <input type="text" name="salePrice" autocomplete="off" placeholder="请输入售价"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">最小单位</label>
                        <div class="layui-input-block">
                            <input type="text" name="miniUnit" autocomplete="off" placeholder="请输入最小单位"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">包装数量</label>
                        <div class="layui-input-block">
                            <input type="text" name="packNum" autocomplete="off" placeholder="请输入包装数量"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">生产厂家</label>
                        <div class="layui-input-block">
                            <input type="text" name="manufacturer" autocomplete="off" placeholder="请输入生产厂家"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">毒麻类型</label>
                        <div class="layui-input-block">
                            <input type="text" name="drugProperties" autocomplete="off" placeholder="请输入毒麻类型"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">抗生素否</label>
                        <div class="layui-input-block">
                            <input type="text" name="antibiotic" autocomplete="off" placeholder="请输入抗生素否"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">OCT否</label>
                        <div class="layui-input-block">
                            <input type="text" name="oct" autocomplete="off" placeholder="请输入OCT否"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">内服否</label>
                        <div class="layui-input-block">
                            <input type="text" name="oraAd" autocomplete="off" placeholder="请输入内服否"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">有效状态</label>
                        <div class="layui-input-block">
                            <input type="text" name="vs" autocomplete="off" placeholder="请输入有效状态"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">门诊零售单位</label>
                        <div class="layui-input-block">
                            <input type="text" name="unit" autocomplete="off" placeholder="请输入门诊零售单位"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">基本药物</label>
                        <div class="layui-input-block">
                            <input type="text" name="jbyw" autocomplete="off" placeholder="请输入基本药物"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">操作时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="operDate" autocomplete="off" placeholder="请输入操作时间"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a class="layui-btn" onclick="drugFormSave()">保存</a>
                        </div>
                    </div>
                    <!-- 隐藏域 -->
                    <input type="text" name="sysNum" hidden="hidden"/>
                </form>

            </div>
        </div>
    </div>
</div>
</body>
<!--js-->
<script th:src="@{/drug/js/drug.js}"></script>
</html>